package com.mobilnaElka.activities;


import android.content.*;
import android.widget.*;
import android.widget.TabHost.TabSpec;

import com.mobilnaElka.activities.calendar.TimetableTabActivity;
import com.mobilnaElka.activities.search.SearchTabActivity;

public class ApplicationTabs {

	public static void setMyTabs(TabHost tabHost, Context context){
        TabSpec firstTabSpec = tabHost.newTabSpec("tid1");
        TabSpec secondTabSpec = tabHost.newTabSpec("tid2");

        firstTabSpec.setIndicator( context.getString(R.string.plan)+"", context.getResources().getDrawable(R.anim.timetable));
        secondTabSpec.setIndicator( context.getString(R.string.searcher)+"", context.getResources().getDrawable(R.anim.search));
        
        firstTabSpec.setContent(new Intent(context, TimetableTabActivity.class));
        secondTabSpec.setContent(new Intent(context, SearchTabActivity.class));
        
        tabHost.addTab(firstTabSpec);
        tabHost.addTab(secondTabSpec);
     
      
	}


}
